package com.zbkj.service.service;

import com.zbkj.common.request.PageParamRequest;
import com.zbkj.common.model.storeclerk.StoreClerkRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.request.StoreClerkRecordBrandSearchRequest;
import com.zbkj.common.request.StoreClerkRecordSaveRequest;
import com.zbkj.common.request.StoreClerkRecordSearchRequest;
import com.zbkj.common.response.StoreClerkRecordBrandPageDataResponse;
import com.zbkj.common.response.StoreClerkRecordPageDataResponse;

import java.util.List;
/**
* @author dazongzi
* @description StoreClerkRecordService 接口
* @date 2025-06-27
*/
public interface StoreClerkRecordService extends IService<StoreClerkRecord> {

    Boolean create(StoreClerkRecordSaveRequest storeClerkRecordSaveRequest);

    /**
     * 分页查询店小二记录表
     * @param request 查询条件
     * @param pageParamRequest 分页对行
     * @return 查询结果
     */
    List<StoreClerkRecordPageDataResponse> getList(StoreClerkRecordSearchRequest request, PageParamRequest pageParamRequest);
    List<StoreClerkRecordBrandPageDataResponse> getListBrand(StoreClerkRecordBrandSearchRequest request, PageParamRequest pageParamRequest);

    boolean batchDelete(List<Integer> idList);
    boolean batchDeleteBrand(List<Integer> idList);

    boolean existsRecord(Integer brandId, Integer storeClerkId);
    boolean existsRecordBrand(Integer merchantId, Integer storeClerkId);

    List<StoreClerkRecord> getIdNameList(Integer storeId);

    List<StoreClerkRecord> getListByBrandId(Integer brandId);

    List<Integer> getList(Integer curBrandId);
}